package com.heima.Server.impl;

import com.heima.Mapper.ArticleAuthorMapper;
import com.heima.model.Article.Pojo.ApAuthor;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleAuthorServer implements com.heima.Server.ArticleAuthorServer {
    @Autowired
    ArticleAuthorMapper articleAuthorMapper;
    @Override
    public ResponseResult AddUser(ApAuthor apAuthor) {
        int insert = articleAuthorMapper.insert(apAuthor);
        return ResponseResult.okResult(insert);
    }
}
